package com.huage_04.lesson01.test01;

public class Father {
    private void show1(){
        System.out.println("private");
    }
    void show2(){
        System.out.println("默认");
    }
    protected void show3(){
        System.out.println("protected");
    }
    public void show4(){
        System.out.println("public");
    }

    public static void main(String[] args) {
        //创建父类对象，测试能访问哪些方法
        Father father = new Father();
        father.show1();
        father.show2();
        father.show3();
        father.show4();
    }
}
